<template>
	<view>
		<view class="" :style="'height:' + statusBarHeight +'px'" ></view>
		<web-view :src="url" class="webV" :style="'padding-top:' + statusBarHeight +'px'" ></web-view>
	</view>
</template>

<script>
	import { minxinAjax } from '../../static/js/mixin.js'
	export default {
		data() {
			return {
				url:'',
				statusBarHeight: 0,
				type:1,
				newsId:null
			};
		},
		mixins:[minxinAjax],
		onLoad(e) {
			// console.log(e)
			this.url=e.url
			this.newsId = e.id
		},
		mounted() {
			let _this = this
			uni.getSystemInfo({
				success(r) {
					_this.statusBarHeight = r.statusBarHeight
				}
			})
		}
	}
</script>

<style lang="less">
.webV{
	width: 100vw;
	height: 100vh;
}
</style>
